﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace MiaProject
{
    public class Barrel2D
    {
        public Vector2 pos;
        public int r;
        public Texture2D texture;
        public Boolean status;
        public Explosion2D exp;
        public Boolean explode;
        public float timeExplode;

        public Barrel2D()
        {
            this.status = true;
            this.explode = false;
            this.timeExplode = 0.5f;

        }
        public void update(GameTime gameTime)
        {
            exp.explosion.Update(gameTime);
            exp.smoke.Update(gameTime);
                
        }
        public void createExplosion(Vector2 where)
        {
            exp.explosion.AddParticles(where);
            exp.smoke.AddParticles(where);
        }
    }
}
